/**
 * 
 */
package cvcg.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * @author jaracje
 *
 */
public class VoteResultDTO {

	private String gameName;
	private Long gameId;
	private List<String> voters=new ArrayList<String>();
	
	public String getGameName() {
		return gameName;
	}
	public void setGameName(String gameName) {
		this.gameName = gameName;
	}
	public List<String> getVoters() {
		return voters;
	}
	public void setVoters(List<String> voters) {
		this.voters = voters;
	}
	
	public Long getGameId() {
		return gameId;
	}
	public void setGameId(Long gameId) {
		this.gameId = gameId;
	}
	public void addVoter(String name) 
	{		
		voters.add(name);
	}
	
	public boolean isVoter(String name) 
	{
		return voters.contains(name);
	}
	
	public Integer getVotes() 
	{
		return Integer.valueOf(voters.size());
	}
	
}
